import { DEFAULT_LAYOUT } from '../base';
import type { AppRouteRecordRaw } from '../types';

const Statistic: AppRouteRecordRaw = {
  path: '/',
  name: 'Data',
  component: DEFAULT_LAYOUT,
  redirect: '/statistic',
  meta: {
    locale: '数据统计',
    roles: ['*'],
    icon: 'icon-bar-chart',
    hideChildrenMenu: true,
    requiresAuth: true,
    order: 6
  },
  children: [
    {
      path: 'statistic',
      name: 'Statistic',
      component: () => import('@/views/statistic/index.vue'),
      meta: {
        activeMenu: 'Statistic'
      }
    }
  ]
};

export default Statistic;
